package com.ruiyian.project.road.service;

import com.ruiyian.project.road.domain.Dire;
import com.ruiyian.project.road.domain.DirePoint;
import com.ruiyian.project.road.domain.Road;

import java.util.List;

/**
 * @author chong
 * @email 673426164@qq.com
 * @create 2021/1/19
 * Desc: 道路方向接口
 */
public interface DireService {

    /**
     * 查询列表
     * @param road
     * @return
     */
    List<Dire> selectList(Dire road);

    /**
     * 根据道路id获取设备
     * @param dire
     * @return
     */
    List<Dire> selectListByRoadId(Dire dire);
    /**
     * 保存
     * @param road
     */
    void save(Dire road);



    /**
     * 编辑
     * @param road
     */
    void edit(Dire road);

    /**
     * 删除
     * @param id
     */
    void delete(Long id);

    /**
     * 根据id获取对象
     * @param id
     * @return
     */
    Dire findOne(Long id);


    /**
     * 批量删除
     * @param list
     */
    void deleteBatch(List<Dire> list);


    void savePoint(DirePoint direPoint);

    List<DirePoint> queryByDireId(Long direId);

    List<DirePoint> queryByRoadId(Long roadId);
}
